	<!-- Header -->
	<include file="Common/header" />
	<div class="main-container">
		
		<!-- Network -->
		<div class="network">
			<div class="common_pic">
				<a href=""><img src="/assets/images/network/banner.jpg" style="width: 414px;"></a>
			</div>
			<div class="m_content">
				<select class="dl_province" name='dl_province'>
					<option value="" disabled selected>请选择省</option>
					<PHP>$province = M('province')->field('provinceName,provinceId')->select();</PHP>
					<volist name="province" id="provinceitem">
						<option value="{$provinceitem.provinceid}">{$provinceitem.provincename}</option>
					</volist>
				</select>省
				<select class="dl_citys" name='dl_citys'>
					<option value="" disabled selected>请选择市</option>
					
				</select>市

				<input type="submit" value="查询" class="submit">
				<div class="shopitem" style="display:none;">
					<!-- <p>网店信息</p> -->
					<div class='itembox'></div>
				</div>  
			</div>
			
				
			
		</div>
		
	</div>
	
	
	
	
	<!-- Footer -->
	<include file="Common/footer" />
		
	<!-- Javascript -->
	<script src="/assets/js/jquery.SuperSlide.2.1.1.js"></script>
	<script src="/assets/js/jquery.slides.js"></script>
	<script src="/assets/js/main.js"></script>
	
	
	<script type="text/javascript">
	$('.dl_province').change(function(){
		var url = "<?php echo U('Home/Index/getCity'); ?>";
		var province_id = $('.dl_province').val();
	
		var data = {
		  	province_id : province_id,
		}
		$.get(url,data,function(msg){
		  	$('.dl_citys').html(msg);
		  	
		})

	})


	$(".submit").click(function(){
		var province_id = $('.dl_province').val();
		if(!province_id){
			alert('请选择城市');
			return;
		}
		var city_id = $('.dl_citys').val();
		var url = "<?php echo U('Home/Index/getshops2'); ?>";	
		var data = {
			province_id : province_id,
		  	city_id : city_id,
		}
		$.get(url,data,function(msg){
			$(".shopitem").show();
			$(".itembox").html(msg);
			
		})
	})

	




</script>





</body>
</html>
